@{
    ViewBag.Title = "[tblTitle]";
}

<!-- list start: -->
<form id="form1" >
	<div style="margin: 20px 0;"></div>
	<table id="table_[tblName]_list" title="[tblTitle]" style="width: auto; height: auto" data-options=" toolbar: '#toolbar', singleSelect:true">
	</table>
	<div id="toolbar" style="height: auto">
		<table style="">
			<tr>
				<td><span>编号：</span></td>
				<td><input class="easyui-textbox input" name="GUID" id="txtQryGUID" /></td>
				<td class="lmf_padding">
					<a href="#" class="easyui-linkbutton" id="btn_[tblName]_search" data-options="plain:false,iconCls:'icon-search'">搜索</a>
				</td>
			</tr>
		</table>
		 <a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true" id="btn_[tblName]_add">添加</a>
		<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true" id="btn_[tblName]_delete" >删除</a>
		<!--<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true" id="btn_[tblName]_edit" >编辑</a>-->

		<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true" id="btn_[tblName]_reload" onclick="">刷新</a>

		<input type="hidden" id="txt_[tblName]_id" name="[tblName]_id" value="" />

	</div>
	<div id="dialog"></div>
</form>
<!-- list end -->
<div class="none" id="closed-windows">
	<!-- add start: -->
	<div id="div_[tblName]_window_add" class="easyui-window" title="[tblTitle]录入" data-options="modal:true,iconCls:'icon-save',closed:true" style="width: 670px; height: 350px;">
		<div style="padding: 10px 20px 20px 60px">
			<form id="form_[tblName]_add" method="post" action="">
				<table cellpadding="5">
	[loop start]
					<tr>
						<td>[fldTitle]:</td>
						<td colspan="3">
							<input class="easyui-validatebox" type="text" id="txt{fldName}" name="[fldName]" value="" />
						</td>
					</tr>
	[loop end]^

					<tr>
						<td></td>
						<td>
							<a href="javascript:void(0)" id="btn_[tblName]_add_submit" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" >添加</a>
						</td>
						<td></td>
						<td></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
	<!-- add end -->


	<!-- edit start: -->
	<div id="div_[tblName]_window_edit" class="easyui-window" title="[tblTitle]修改" data-options="modal:true,iconCls:'icon-save',closed:true" style="width: 670px; height: 350px;">
		<div style="padding: 10px 20px 20px 60px">
			<form id="form_[tblName]_edit" method="post" action="">
				<table cellpadding="5">
	[loop start]
					<tr>
						<td>[fldTitle]:</td>
						<td colspan="3">
							<input class="easyui-validatebox" type="text" id="txt{fldName}" name="[fldName]" value="" />
						</td>
					</tr>
	[loop end]^

					<tr>
						<td></td>
						<td>
							<input type="hidden" id="txtId" name="id" value="" />
							<a href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:'icon-ok'"  id="btn_[tblName]_edit_submit">更新</a>
						</td>
						<td></td>
						<td></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
	<!-- edit end -->

	<!-- view start -->
	<div id="div_[tblName]_window_view" class="easyui-window" title="详情" data-options="modal:true,iconCls:'icon-save',closed:true" style="width: 670px; height: 350px;">
		<div style="padding: 10px 20px 20px 60px">
			<form id="form_[tblName]_view" method="post" >
				<table cellpadding="5">
	[loop start]
					<tr>
						<td>[fldTitle]:</td>
						<td colspan="3">
						   <span class="easyui-span"  id="spn-[fldName]" ></span>
						</td>
					</tr>
	[loop end]^ 

				</table>
			</form>
			<div data-options="region:'south',border:false" style="text-align: left; padding: 5px 20px 0;">
				<a href="javascript:;" class="easyui-linkbutton" data-options="iconCls:'icon-ok'" id="btn_view_close">关闭</a>
			</div>

		</div>
	</div>
</div>
<!-- view end -->
<script src="/viewjs/admin/store/[tblName].js"></script>

